import request from '@/utils/request'


// 查询所有楼层全链路关联数据
export function listFloorAllRelations() {
  return request({
    url: '/le/floor/all-relations',
    method: 'get'
  })
}

// 根据楼层ID查询单条全链路数据
export function getFloorRelationsById(id) {
  return request({
    url: '/le/floor/all-relations/' + id,
    method: 'get'
  })
}
// 查询楼层信息列表
export function listFloor(query) {
  return request({
    url: '/le/floor/list',
    method: 'get',
    params: query
  })
}

// 查询楼层信息详细
export function getFloor(id) {
  return request({
    url: '/le/floor/' + id,
    method: 'get'
  })
}

// 新增楼层信息
export function addFloor(data) {
  return request({
    url: '/le/floor',
    method: 'post',
    data: data
  })
}

// 修改楼层信息
export function updateFloor(data) {
  return request({
    url: '/le/floor',
    method: 'put',
    data: data
  })
}

// 删除楼层信息
export function delFloor(id) {
  return request({
    url: '/le/floor/' + id,
    method: 'delete'
  })
}
